<?php

require_once 'common/conn.php';

$data = array();
if (isset($_GET['name'])) {
    $name = $_GET['name'];
    $db = new DBC();
    $sql = "SELECT name,version,url FROM t_hibaby_title_packet WHERE name = '" . trim($name) . "'";
    $data = $db->fetchData($sql);
}
echo json_encode($data);
?>